package com.ruoyi.equipment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备日志对象 t_user_log
 * 
 * @author ruoyi
 * @date 2021-12-23
 */
public class TEquipmentLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private String nickName;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    private String drawerRemark;

    private Integer toolId;

    public Integer getToolId() {
        return toolId;
    }

    public void setToolId(Integer toolId) {
        this.toolId = toolId;
    }

    public String getDrawerRemark() {
        return drawerRemark;
    }

    public void setDrawerRemark(String drawerRemark) {
        this.drawerRemark = drawerRemark;
    }

    private Integer userLogId;

    public Integer getUserLogId() {
        return userLogId;
    }

    public void setUserLogId(Integer userLogId) {
        this.userLogId = userLogId;
    }

    //设备id
    @Excel(name = "设备编号")
    private String equipmentId;
    //仓匣编号
    @Excel(name = "仓匣编号")
    private Integer drawerNo;
    //设备名称
    @Excel(name = "设备名称")
    private String equipmentName;
    //项目名称
    @Excel(name = "项目名称")
    private String projectName;
    //工具用途
    @Excel(name = "工具用途")
    private String toolUse;
    //使用时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "使用时间" ,width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date useTime;
    //部门id
    private Integer deptId;
    //用户id
    private Integer userId;

    @Excel(name = "图片地址")
    private String imgUrl;

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    @Excels({
            @Excel(name = "部门名称", targetAttr = "deptName", type = Excel.Type.EXPORT),
            @Excel(name = "部门负责人", targetAttr = "leader", type = Excel.Type.EXPORT)
    })
    private SysDept sysDept;

    @Excels({@Excel(name = "用户姓名",targetAttr = "nickName",type =Excel.Type.EXPORT )})
    private SysUser sysUser;

    @Excel(name = "是否归还" ,readConverterExp = "0=归还,1=未归还")
    private Integer returnStu;

    @Excel(name = "仓匣是否归还到设备上",readConverterExp = "0=归还,1=未归还")
    private Integer drawerStu;

    private String drawerId;

    public String getDrawerId() {
        return drawerId;
    }

    public void setDrawerId(String drawerId) {
        this.drawerId = drawerId;
    }

    public Integer getDrawerStu() {
        return drawerStu;
    }

    public void setDrawerStu(Integer drawerStu) {
        this.drawerStu = drawerStu;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public Integer getReturnStu() {
        return returnStu;
    }

    public void setReturnStu(Integer returnStu) {
        this.returnStu = returnStu;
    }

    public String getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(String equipmentId) {
        this.equipmentId = equipmentId;
    }

    public Integer getDrawerNo() {
        return drawerNo;
    }

    public void setDrawerNo(Integer drawerNo) {
        this.drawerNo = drawerNo;
    }

    public String getEquipmenName() {
        return equipmentName;
    }

    public void setEquipmenName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getToolUse() {
        return toolUse;
    }

    public void setToolUse(String toolUse) {
        this.toolUse = toolUse;
    }

    public Date getUseTime() {
        return useTime;
    }

    public void setUseTime(Date useTime) {
        this.useTime = useTime;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public SysDept getSysDept() {
        return sysDept;
    }

    public void setSysDept(SysDept sysDept) {
        this.sysDept = sysDept;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("useTime", getUseTime())
            .append("toolUse", getToolUse())
            .append("projectName", getProjectName())
            .append("equipmentId", getEquipmentId())
            .append("drawerNo", getDrawerNo())
            .append("equipmentName", getEquipmentName())
            .append("returnStu", getReturnStu())
            .append("imgUrl",getImgUrl())
            .append("drawerStu",getDrawerStu())
            .append("drawerId",getDrawerId())
            .append("userLogId",getUserLogId())
            .append("drawerRemark",getDrawerRemark())
                .append("toolId",getToolId())
                .append("nickName",getNickName())
            .toString();
    }
}
